import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

public class TestMulticastSocketSend {

	public static void main(String[] args) {
		try {
			InetAddress group =  InetAddress.getByName("228.5.6.7");
			DatagramSocket socket = new DatagramSocket(39874);
			byte[] data = "hello".getBytes();
			DatagramPacket packet = new DatagramPacket(data, data.length,group,39875);
			socket.send(packet);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
